package com.lanou.pianke.user.mapper;

import com.lanou.pianke.piece.web.entity.PieceIsLike;
import com.lanou.pianke.user.web.entity.*;

import java.util.List;

public interface UserMapper {
    UserNumber selectByUid(Long uid);

    User selectUdescByUid(Long uid);

    List<Piece> selectPieceByUid(Long uid);

    List<Articles> selectAticlesByUid(Long uid);

    List<Piece> selectAllPieceId(Long uid);

    List<Pcomment> selectCommentByPieceId(String pieceid);

    Integer updateUserAccount(User user);

    List<Piece> selectPieceIdByUid(Long uid);

    Integer selectCommentStatusByPieceId(String pieceid);

    Long selectUidByUname(String uname);

    List<PieceIsLike> selectIsLikeByPieceId(String pieceid);

    List<Pcomment> selectPcommentByPieceIdAndStatus(String pieceid);

    void updatePcommentStatusByPcomment_id(String pcomment_id);

    void insertRelation(UserRelation relation);

    void updateRelationByUid(Long uid);

    Integer selectPieceLikeByUid(Long uid);

    Integer selectUserRelationIdByUid(Long uid);

    List<Long> selectUserRelationByUid(Long uid);

    User selectUserByUid(Long aLong);

    List<Long> selectUserRelationFollowByUid(Long uid);

    List<Long> selectUserVisitorByUid(Long uid);
}
